package com.dataseek.iot.mysql.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author cc
 * @since 2021-09-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel("菜单 menu")
public class Menu implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * 序号
     */
    @ApiModelProperty("菜单ID")
    @TableId(type = IdType.AUTO)
    private Long menuInnerId;

    /**
     * 菜单编码
     */
    @ApiModelProperty(value = "菜单编码",required = true)
    private String menuCode;

    /**
     * 菜单名称
     */
    @ApiModelProperty(value = "菜单名称",required = true)
    private String menuName;

    /**
     * 菜单路由
     */
    @ApiModelProperty(value = "菜单路由",required = true)
    private String menuRoute;

    /**
     * 上级ID
     */
    @ApiModelProperty(value = "父级ID",required = true)
    private String parentId;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    private String createTime;

    /**
     * 更新时间
     */
    @ApiModelProperty("更新时间")
    private String updateTime;

    /**
     * 评论
     */
    @ApiModelProperty("补充信息")
    private String comment;

    /**
     * 菜单图标
     */
    @ApiModelProperty("菜单图标")
    private String menuAvatar;

    /**
     * 菜单层级
     */
    @ApiModelProperty(value = "菜单级别",required = true)
    private String menuLevel;

    /**
     * 启用
     */
    @ApiModelProperty("启用")
    private byte used;

}
